{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# *args (Non-keyword arguments): Packs multiple positional arguments into a tuple.\n",
    "# **kwargs (Keyword arguments): Packs multiple keyword arguments into a dictionary."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Packed arguments: (1, 2, 3, 4, 'geeks for geeks')\n"
     ]
    }
   ],
   "source": [
    "def sample(*args):\n",
    "    print(\"Packed arguments:\", args)\n",
    "\n",
    "sample(1, 2, 3, 4, \"geeks for geeks\")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Packed keyword arguments: {'name': 'Anaya', 'age': 25, 'country': 'India'}\n"
     ]
    }
   ],
   "source": [
    "def sample(**kwargs):\n",
    "    print(\"Packed keyword arguments:\", kwargs)\n",
    "\n",
    "sample(name=\"Anaya\", age=25, country=\"India\")\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "jupter-env-10",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.16"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
